package com.baidu.mpks.statistic.meta;

import java.io.Serializable;
import java.util.Objects;

public class UserCount implements Serializable {
    private String id;
    private long count;

    public UserCount(String id, long count) {
        this.id = id;
        this.count = count;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public long getCount() {
        return count;
    }

    public void setCount(long count) {
        this.count = count;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof UserCount)) {
            return false;
        }
        UserCount userCount = (UserCount) o;
        return id.equals(userCount.id);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id);
    }
}
